package cn.saddyfire.pattern.strategy;

/**
 * @author Dee
 * @date 2024/2/6
 * <p>Description:促销员(环境角色)
 */
public class SalesMan {
    private Strategy strategy;

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
    //向客户展示促销活动
    public void salesManShow(){
        strategy.show();
    }
}
